/*
 * @Author: caihongtai caihongtai
 * @Date: 2025-02-08 21:41:33
 * @LastEditors: caihongtai caihongtai
 * @LastEditTime: 2025-02-09 14:55:16
 * @FilePath: /ai-interview-vue/config/auto-import.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import AutoImport from 'unplugin-auto-import/vite'

export default function createAutoImport() {
    return AutoImport({
        imports: [
            'vue',
            'vue-router',
            'pinia'
        ],
        dts: false, // 明确关闭 TypeScript 声明文件的生成
        dirs: [
            'src/composables',
            'src/stores'
        ],
        eslintrc: {
            enabled: true,
            filepath: './.eslintrc-auto-import.json',
            globalsPropValue: true
        }
    })
}